<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <link rel="stylesheet" href="./lib/mui/css/mui.min.css">
  <link rel="stylesheet" href="./lib/fa/css/font-awesome.css">
  <link rel="stylesheet" href="./css/common.css">
  <link rel="stylesheet" href="./css/search.css">
  <title>乐淘商城</title>
</head>

<body>
  <div class="lt-layout">
    <!-- 头部 -->
    <!-- 头部布局：两侧固定，中间自适应,整体固定 -->
    <div class="lt-header">
      <!-- 左侧home图标 -->
      <a href="#" class="mui-icon mui-icon-back"><i></i></a>
      <!-- 中间标题 -->
      <h3>搜索中心</h3>
    </div>
    <!-- 主体部分 -->
    <div class="lt-main">
      <!-- 主体部分区域滚动 -->
      <div class="mui-scroll-wrapper">
        <div class="mui-scroll">
          <!--这里放置真实显示的DOM内容-->
          <div class="lt-search">
            <input type="text" class="search-input" placeholder="请输入搜索关键字">
            <button class="mui-btn mui-btn-primary search-btn">搜索</button>
          </div>
          <div class="search-info"></div>
        </div>
      </div>
    </div>
    <!-- 底部 -->
    <div class="lt-footer" id="lt-f">
      <a href="index.html" class="current"><i class="mui-icon mui-icon-home"></i>
        <p>首页</p>
      </a>
      <a href="category.html"><i class="mui-icon mui-icon-bars"></i>
        <p>分类页</p>
      </a>
      <a href="cart.html"><i class="fa fa-cart-plus"></i>
        <p>购物车</p>
      </a>
      <a href="user.html"><i class="fa fa-user"></i>
        <p>用户中心</p>
      </a>
    </div>
  </div>


  <!-- 模板 -->
  <script type='text/html' id="tmp">
   
      {{if list.length==0}}
        <p>没有更多数据</p>
        {{else}}
        <div class="title mui-clearfix">
          <a href="#" class="mui-pull-left">搜索历史</a>
          <a href="#" class="mui-pull-right re-btn"><i class="fa fa-trash"></i>清空记录</a>
        </div>
        <ul class="search-ul">   
            {{each list v i}} 
            <li>
              <a href="#" class="mui-pull-left">{{v}}</a>
              <!-- data-index:存储当前记录在数组中的下标 -->
              <i class="mui-icon mui-icon-closeempty mui-pull-right btn-del" data-index={{i}}></i></li>
            {{/each}}
        </ul>
    {{/if}}
  </script>
  <script src="./lib/zepto/zepto.min.js"></script>
  <script src="./lib/mui/js/mui.js"></script>
  <script src="./lib/artTemplate/template-web.js"></script>
  <script src="./js/common.js"></script>
<<<<<<< HEAD
  <script src="./js/search.js"></script>
  <!-- <script src=""></script> -->
=======
  <script src="./js/index.js"></script>
   
>>>>>>> master
</body>

</html>